package com.designpatternspart2.creationaldesignpatterns.builderpattern;

/**
 * File Name: MealDirector.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.builderpattern
 * Author: Lance
 * Date: Apr 26, 2012
 */
public class MealDirector
{

    private MealBuilder mealBuilder = null;

    public MealDirector(MealBuilder mealBuilder)
    {
        this.mealBuilder = mealBuilder;
    }

    public void constructMeal()
    {
        mealBuilder.buildDrink();
        mealBuilder.buildMainCourse();
        mealBuilder.buildSide();
    }

    public Meal getMeal()
    {
        return mealBuilder.getMeal();
    }
}
